/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
  width: 350px;
  min-height: 500px;
  background-color: #ffffff;
  color: #333333;
  font-size: 14px;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

/* 按钮样式 */
button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  padding: 5px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #f0f0f0;
}

.btn-primary {
  background-color: #3F51B5;
  color: white;
  padding: 8px 16px;
  font-weight: bold;
}

.btn-primary:hover {
  background-color: #303f9f;
}

.btn-secondary {
  background-color: #f0f0f0;
  color: #333333;
  padding: 8px 16px;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

/* 头部样式 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #EEEEEE;
  background-color: #3F51B5;
  color: white;
}

.header h1 {
  font-size: 18px;
  font-weight: bold;
}

.btn-add {
  background-color: #FF4081;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add:hover {
  background-color: #e03a75;
}

.btn-back {
  color: white;
  font-size: 18px;
}

/* 搜索和过滤区域 */
.search-container {
  padding: 12px 16px;
  border-bottom: 1px solid #EEEEEE;
}

.search-container input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #DDDDDD;
  border-radius: 4px;
  outline: none;
}

.search-container input:focus {
  border-color: #3F51B5;
}

.filter-container {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #EEEEEE;
}

.filter-container select {
  padding: 6px;
  border: 1px solid #DDDDDD;
  border-radius: 4px;
  outline: none;
}

.filter-container select:focus {
  border-color: #3F51B5;
}

.btn-search {
  background-color: #3F51B5;
  color: white;
  margin-left: auto;
}

.btn-search:hover {
  background-color: #303f9f;
}

/* 凭证列表 */
.credentials-list {
  max-height: 380px;
  overflow-y: auto;
}

.region-group {
  border-bottom: 1px solid #EEEEEE;
}

.region-header {
  padding: 12px 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  background-color: #f8f8f8;
}

.region-header i {
  margin-right: 8px;
}

.region-items {
  padding: 0 8px;
}

.credential-item {
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.credential-item:last-child {
  border-bottom: none;
}

.credential-info {
  display: flex;
  flex-direction: column;
}

.username {
  font-weight: bold;
}

.password {
  color: #666;
  font-family: monospace;
}

.credential-actions {
  display: flex;
  gap: 5px;
}

.btn-view {
  color: #3F51B5;
}

.btn-copy {
  color: #009688;
}

.btn-edit {
  color: #FF9800;
}

/* 表单样式 */
.form-container {
  padding: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #DDDDDD;
  border-radius: 4px;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #3F51B5;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* 表单填充样式 */
.fill-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 1000;
}

.fill-list {
  max-height: 250px;
  overflow-y: auto;
}

.fill-region {
  border-bottom: 1px solid #EEEEEE;
}

.fill-items {
  padding: 0 8px;
}

.fill-item {
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.fill-item:last-child {
  border-bottom: none;
}

.btn-fill {
  background-color: #3F51B5;
  color: white;
  padding: 4px 8px;
}

.btn-fill:hover {
  background-color: #303f9f;
} 